package com.yuxiao.dynmic.scheduled.conf;

import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.context.annotation.Configuration;

/**
 * Nacos配置
 *
 * @author yangjunwei
 * @date 2022-01-25 21:41
 */
@EnableNacosConfig(globalProperties = @NacosProperties(
        serverAddr = "localhost:8848",
        namespace = "8a6b6c35-4482-4b6e-8f96-26bac9724950"
))
@NacosPropertySource(groupId = "DEFAULT_GROUP", dataId = "application-dev.yaml", autoRefreshed = true)
@Configuration
public class NacosConfig {
}
